<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<title>Search Results</title>
	</head>
	<body>
		
			<h2>
				Search Results
			</h2>
			
			<s:if test="p.result.size==0">
				No users match.
			</s:if>
			
			<s:else>
			<table class="widefat">
				<thead>
					<tr>
	
						<td width="5%">
							
						</td>
						<td width="5%">
							id
						</td>
						<td width="30%">
							Username
						</td>
						<td width="25%">
							Email
						</td>
						<td width="30%">
							
						</td>
						<td width="30%">
							
						</td>
					</tr>
				</thead>

				<tbody>

					<s:iterator value="p.result">
						<tr>
							<td>
								<input type="checkbox" name="ids" value="${id}">
							</td>

							<td>
								${id}
							</td>
							<td>
								<a href="${BASEURL }/user.jspa?username=${username }">${username}</a>
							</td>
							<td>
								${email}
							</td>
							<td>
								
							</td>
							<td>
								
							</td>
						</tr>
					</s:iterator>
				</tbody>
			</table>

			<tail:page name="p" />
			</s:else>
	</body>